<?


   include "./includes/dates.inc.php";
   include "banners.php";

?>
<html>
<head>
<TITLE><? print $SETTINGS[sitename]?></TITLE>



<SCRIPT Language=Javascript>
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function sh(sid)
{
	dv = MM_findObj("dvb_"+sid);
	dv.style.display = (dv.style.display == "") ? "none" : "";
	ii = MM_findObj("imb_"+sid);
	ii.src = (dv.style.display == "") ? "images/cross_minus.gif" : "images/cross_plus.gif";
}

function MM_swapImgRestore() { //v2.0

  if (document.MM_swapImgData != null)

    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)

      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];

}

function MM_preloadImages() { //v2.0

  if (document.images) {

    var imgFiles = MM_preloadImages.arguments;

    if (document.preloadArray==null) document.preloadArray = new Array();

    var i = document.preloadArray.length;

    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){

      preloadArray[i] = new Image;

      preloadArray[i++].src = imgFiles[j];

  } }

}



function MM_swapImage() { //v2.0

  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;

  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {

    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];

    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||

        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))

      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);

    obj = eval(objStr);

    if (obj != null) {

      swapArray[j++] = obj;

      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];

      obj.src = MM_swapImage.arguments[i+2];

  } }

  document.MM_swapImgData = swapArray; //used for restore

}

//-->

</script>

<link href="styles.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD>

<body leftmargin="0" topmargin="0">
<table width="775" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top" bgcolor="#000000">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
        <tr>
          <td align="center" valign="top" bgcolor="#FFFFFF">
		    <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center" valign="top">
				  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="center" valign="top"><A href="index.php?"><img src="images/header1.jpg" width="248" height="134" border="0"></a></td>
                      <td align="center" valign="top"><img src="images/header2.jpg" width="315" height="134"></td>
                      <td width="212" align="center" valign="middle" background="images/header3.jpg">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center" valign="middle" height="40"></td>
                          </tr>
                          <!--
                          <tr>
                            <td align="center" valign="middle"><b>Browse</b></td>
                            <td align="center" valign="middle"><input type="text" name="textfield" size="12"></td>
                            <td align="left" valign="middle"><a href="#"><img src="images/go_browse.jpg" width="30" height="22" border="0"></a></td>
                          </tr>
                          -->
                          <tr>
                          <td align="left">
                          <FORM name=browse action="browse.php" method=GET>
						  <INPUT type=HIDDEN name="">
						  <? print $MSG_104; ?>
						  <font class="TEXTAREA">
						  <? include "./includes/categories_select_box.inc.php"; ?>
						  </font>
						  <INPUT TYPE=submit NAME="" VALUE="<? print $MSG_275;?>">
          				  </FORM>
          				  </td>
          				  </tr>
                        </table>
					  </td>
                    </tr>
                  </table>
				</td>
              </tr>
              <tr>
                <td align="center" valign="middle" background="images/topmenu_bg.jpg">
                  <table width="90%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="center" valign="middle"><a class=navlinks href="./index.php?"><? print $MSG_274; ?></a></td>
                      <td align="center" valign="middle"><img src="images/topmenu_ptn.jpg" width="24" height="29"></td>

					<?
					if($HTTP_SESSION_VARS["PHPAUCTION_LOGGED_IN"])
					{
					/* user is logged in, give link to edit data or log out */
					?>

                      <td align="center" valign="middle"><a class=navlinks href="./sell.php?"><? print $MSG_236; ?></a></td>
                      <td align="center" valign="middle"><img src="images/topmenu_ptn.jpg" width="24" height="29"></td>
                      <td align="center" valign="middle"><a class=navlinks href="./user_menu.php?"> <? print $MSG_622; ?></a></td>
                      <td align="center" valign="middle"><img src="images/topmenu_ptn.jpg" width="24" height="29"></td>
                      <td align="center" valign="middle"><a class=navlinks href="./logout.php?"><? print $MSG_245; ?></a></td>
                      <td align="center" valign="middle"><img src="images/topmenu_ptn.jpg" width="24" height="29"></td>

                   <?
					} else {
					/* user not logged in, give link to register or login */
				   ?>

					 <td align="center" valign="middle"><a class=navlinks href="user_login.php?"><? print $MSG_236; ?></a></td>
				     <td align="center" valign="middle"><img src="images/topmenu_ptn.jpg" width="24" height="29"></td>
				     <td align="center" valign="middle"><a class=navlinks href="./register.php?"><? print $MSG_235; ?></a></td>
				     <td align="center" valign="middle"><img src="images/topmenu_ptn.jpg" width="24" height="29"></td>
				     <td align="center" valign="middle"><a class=navlinks href="user_login.php?"><? print $MSG_259; ?></a></td>
                     <td align="center" valign="middle"><img src="images/topmenu_ptn.jpg" width="24" height="29"></td>


                   <?
					 }
				   ?>
					<td align="center" valign="middle"><A class=navlinks HREF="./help.php?"> <? print $MSG_164; ?></A></td>
					<td align="center" valign="middle"><img src="images/topmenu_ptn.jpg" width="24" height="29"></td>
					<td align="center" valign="middle"><A class=navlinks HREF="advertise.php?"> Advertise</A> </td>
					<td align="center" valign="middle"><img src="images/topmenu_ptn.jpg" width="24" height="29"></td>
					<td align="center" valign="middle"><a class=navlinks href="<?php echo($SETTINGS[siteurl]);?>auctionbb">Forum</a></td>
					<td align="center" valign="middle"><img src="images/topmenu_ptn.jpg" width="24" height="29"></td>
					<td align="center" valign="middle"><a class=navlinks href="<?php echo($SETTINGS[siteurl]);?>links.php">Links</a></td>
                    </tr>
                  </table>
				</td>
              </tr>
              <tr>
                <td align="center" valign="top" background="images/topmenu1_bg.jpg"><img src="images/topmenu1_bg.jpg" width="26" height="15"></td>
              </tr>
              <tr>
                <td align="center" valign="middle" background="images/banner_bg.jpg">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="35%" align="center" valign="middle">
                      <FORM name="search" action="search.php" method="GET">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center"><input type=HIDDEN name=""> <? print $MSG_103 ?></td>
						    <td align="center"><input type="text" name="q" size=15 value="<SCRIPT Language=PHP> print htmlspecialchars($q); </SCRIPT>"></td>
						    <td align="left"><font size="1">
						    <input type=submit name="" value="<? print $MSG_275;?>">
                    		</font></td>
                          </tr>
                        </table>
                        </FORM>
                      </td>
                      <td width="65%" align="center" valign="middle"><?=$banners?></td>
                    </tr>
                  </table>
				</td>
              </tr>
              <!--
              <tr>
                <td align="center" valign="top">
				  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="192" align="center" valign="top" background="images/leftmenu_bg.jpg">
						 <table width="100%" border="0" cellspacing="0" cellpadding="0">
						   <tr>
                             <td height="10" align="center" valign="top">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
								  <tr>
									<td align="center" valign="top"><img src="images/categories.jpg" width="192" height="44"></td>
								  </tr>
								  <tr>
									<td height="5" align="center" valign="top"></td>
								  </tr>
								  <tr>
									<td align="center" valign="top">MENU PART</td>
								  </tr>
								  <tr>
									<td height="10" align="center" valign="top"></td>
								  </tr>
								</table>
							  </td>
							  <td align="center" valign="top">
							  <table width="100%" border="0" cellspacing="0" cellpadding="0">
								  <tr>
									<td height="10" align="center" valign="top"></td>
								  </tr>
								  <tr>
									<td align="center" valign="top">
									-->